<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view contentType="text/html" encoding="UTF-8">

	<h:head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
		
		<!-- Java Script Diário  -->
		<h:outputScript library="js" name="primefaces_i18n.js" />	

		<!-- Css Geral -->
		<link type="text/css" rel="stylesheet" href="${facesContext.externalContext.requestContextPath}/css/default.css" />

		<title>#{bundle.titulo_aplicacao}</title>

	</h:head>

	<h:body>

		<p:panel styleClass="panel">
			<ui:insert name="header">
				  <ui:include src="../template/menu.xhtml" />
			</ui:insert>
		</p:panel>

		<div id="divEstruturaPrincipal">
			<div id="divConteudo">

				<ui:insert name="content" />

			</div>
		</div>
		
		<div align="center">

			<p:dialog id="dialogStatusAjax" modal="false"
					  widgetVar="statusDialog" header="Carregando..."
					  draggable="false" closable="false"
					  style="horizontal-align:center; width: 150px !important;">
				
				 	<p:graphicImage value="/images/carregando.gif" width="30px" />
			
			</p:dialog>

		</div>

		<h:outputLink id="pdfReportLink" value="#{facesContext.externalContext.requestContextPath}/report/pdf" />
	    <script>
		    function openPdfLink() {
				var link = document.getElementById('pdfReportLink');
				if (link.getAttribute('onclick') != null) {
					link.onclick();
				} else {
					document.location.href = link;
				}
			}
	    </script>
	</h:body>
	
	<h:outputStylesheet library="css" name="default.css" />
	<h:outputScript library="javax.faces" name="jsf.js"/>  
	<h:outputScript library="js" name="script.js" />
	<h:outputScript library="js" name="datepicker.js" />
	<h:outputScript name="js/script_formUtils.js?version=25" />
	
</f:view>
</html>